import request from '@/utils/request'

// 查询分组列表
export function listGrouping(query) {
  return request({
    url: '/video/grouping/list',
    method: 'get',
    params: query
  })
}

// 查询分组详细
export function getGrouping(id) {
  return request({
    url: '/video/grouping/' + id,
    method: 'get'
  })
}

// 新增分组
export function addGrouping(data) {
  return request({
    url: '/video/grouping',
    method: 'post',
    data: data
  })
}

// 修改分组
export function updateGrouping(data) {
  return request({
    url: '/video/grouping',
    method: 'put',
    data: data
  })
}

// 删除分组
export function delGrouping(id) {
  return request({
    url: '/video/grouping/' + id,
    method: 'delete'
  })
}
